{% extends "analysis_plugins/general_information.html" %}

{% block analysis_result_details %}

<tr>
  <td class="result"> Overview of CWE warnings </td>
  <td class="result">
    <ul>
      {% for cwe in firmware.processed_analysis[selected_analysis]['summary']|sort %}
      <li><a href="https://cwe.mitre.org/data/definitions/{{ cwe | fix_cwe }}.html">{{ cwe }}</a></li>
      {% endfor %}
    </ul>
  </td>
</tr>

{% for cwe in firmware.processed_analysis[selected_analysis]['full']|sort %}
<tr>
  <td class="result"> {{cwe}} ({{firmware.processed_analysis[selected_analysis]['full'][cwe]['plugin_version']}}) </td>
  <td class="result">
    <ul>
      {% for msg in firmware.processed_analysis[selected_analysis]['full'][cwe]['warnings'] %}
      <li> {{msg}} </li>	
      {% endfor %}
    </ul>
  </td>
</tr>
{% endfor %}
{% endblock %}
